package com.lyz.dataStructure.JianZhiOffer.array;/**
 * @Author:759057893@qq.com Lyz
 * @Date: ${Date} 20:16
 * @Description:
 **/

import java.util.LinkedList;
import java.util.Scanner;

/**
 *@Author:759057893@qq.com Lyz
 *@Date: 2019/6/30 20:16
 *@Description:
 **/
public class Main1 {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int m = sc.nextInt();
        int node1;
        LinkedList<Integer> linkedList = new LinkedList<>();
        for(int i = 0; i<m;i++){
            node1 =sc.nextInt();
            linkedList.offer(node1);
        }
        int k = sc.nextInt();
        if(k>=m){
            System.out.println("null");
        }else {
            System.out.println(linkedList.get(m-k-1));
        }
    }
}
